package com.cloud.ceshi.service;

import com.cloud.ceshi.mode.entity.Account;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zwb
 * @since 2025-07-07
 */
public interface IAccountService extends IService<Account> {
    /**
     * 账户扣减
     * @param userId 用户 ID
     * @param price 扣减金额
     */
    void reduceBalance(Long userId, Double price);
}
